#include "soarece.h"
#include <string>
#include <iostream>
using namespace std;

Soarece::Soarece()
{
 	this->ageLimit=36;
 	this->age=0;
	this->sex=Female;
  	this->culoareBlana = colors[rand()%6];
	this->ID= rand()%1000;
}

void Soarece::print()
{
	string whatSex;
	if(sex==1)
		whatSex="Male";
	else 
		whatSex="Female";
	std::cout<<"Soarece"<<ID<<" "<<getCuloareBlana()<<" "<<whatSex<<endl;
}

Soarece *Soarece::giveBirth()
{
	if(sex==Gender(2))
	return new Soarece();
	else {print();
		cout<<"cant't give Birth !!"<<endl;
	}
return NULL;
}
